public partial class ConstData
{
public void ReadFromTables(ConstDataTable table)
    {
        if (table == null)
        {
            GameDebug.LogError("table == null");
            return;
        }
        if (table.goods != null)
        {
            int GoodsArcheLength = table.goods.Length;
            this.goods = new GoodsArche[GoodsArcheLength];
            for (int i = 0; i < GoodsArcheLength; i++)
            {
                this.goods[i] = new GoodsArche(table.goods[i]);
            }
        }
        if (table.aiNameArche != null)
        {
            int AINameArcheLength = table.aiNameArche.Length;
            this.aiNameArche = new AINameArche[AINameArcheLength];
            for (int i = 0; i < AINameArcheLength; i++)
            {
                this.aiNameArche[i] = new AINameArche(table.aiNameArche[i]);
            }
        }
        if (table.tips != null)
        {
            int TipsArcheLength = table.tips.Length;
            this.tips = new TipsArche[TipsArcheLength];
            for (int i = 0; i < TipsArcheLength; i++)
            {
                this.tips[i] = new TipsArche(table.tips[i]);
            }
        }
       this.adConfig = new AdConfig(table.adConfig);
        if (table.langs != null)
        {
            int LanguageArcheLength = table.langs.Length;
            this.langs = new LanguageArche[LanguageArcheLength];
            for (int i = 0; i < LanguageArcheLength; i++)
            {
                this.langs[i] = new LanguageArche(table.langs[i]);
            }
        }
    }
}


public partial class GoodsArche
{
    public GoodsArche(GoodsArche_Table table)
    {
       this.goodsId =  table.goodsId;
       this.type =  table.type;
       this.value =  table.value;
       this.nameKey =  table.nameKey;
       this.descKey =  table.descKey;
       this.price =  table.price;
       this.useMoney =  table.useMoney;
       this.applePurchaseId =  table.applePurchaseId;
       this.googlePurchaseId =  table.googlePurchaseId;
       this.unityPurchaseId =  table.unityPurchaseId;
       this.limit =  table.limit;
    }
}


public partial class AINameArche
{
    public AINameArche(AINameArche_Table table)
    {
       this.name =  table.name;
    }
}


public partial class TipsArche
{
    public TipsArche(TipsArche_Table table)
    {
       this.contentKey =  table.contentKey;
    }
}


public partial class AdConfig
{
    public AdConfig(AdConfig_Table table)
    {
       this.admodAndroidBannerId =  table.admodAndroidBannerId;
       this.admodIOSBannerId =  table.admodIOSBannerId;
       this.admodAndroidInterstitialId =  table.admodAndroidInterstitialId;
       this.admodIOSInterstitialId =  table.admodIOSInterstitialId;
       this.admodAndroidVideoId =  table.admodAndroidVideoId;
       this.admodIOSVideoId =  table.admodIOSVideoId;
       this.uniyAdsAndroidGameId =  table.uniyAdsAndroidGameId;
       this.uniyAdsIOSGameId =  table.uniyAdsIOSGameId;
       this.unityAdsBannerPlacementId =  table.unityAdsBannerPlacementId;
       this.unityAdsInterstitialPlacementId =  table.unityAdsInterstitialPlacementId;
       this.unityAdsRewardVideoPlacementId =  table.unityAdsRewardVideoPlacementId;
    }
}


public partial class LanguageArche
{
    public LanguageArche(LanguageArche_Table table)
    {
       this.key =  table.key;
       this.CN =  table.CN;
       this.EN =  table.EN;
       this.TC =  table.TC;
    }
}


